package com.util;
import java.io.*;
 
public class HangulConversion {
	public static String toEng (String ko)  {
		if (ko == null) {
			return null;
		}
		
		try {
			return new String(ko.getBytes("euc-kr"),"8859_1");
		} catch(Exception e) {
			return ko;
		}
	}

	public static String toKor (String en) {
		if (en == null) {
			return null;
		}
		try {
    			return new String (en.getBytes("8859_1"), "euc-kr");
		} catch(Exception e) {
			return en;
		}
   	}
}


